package com.tencent.system.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.tencent.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 实体类：
 */
@Data
public class Menu extends BaseDomain{
    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parent_id;
    private String intro;
    private Boolean state;

    /** 用于上级菜单树 - 封装当前下级的 */
    /** 上级树最后一级没有数据就不显示 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<>();

    /** 上级菜单联对象 */
    private Menu parent;

}
